package com.zmm.zebulon.module.system.biz.convert.permission;

import com.zmm.zebulon.module.system.biz.controller.admin.permission.vo.role.*;
import com.zmm.zebulon.module.system.biz.dal.dataobject.permission.RoleDO;
import com.zmm.zebulon.module.system.biz.service.permission.bo.RoleCreateReqBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * description: 角色 转换
 *
 * @author zebulon
 * package com.zmm.zebulon.module.system.biz.convert.permission
 * name: RoleConvert
 * date 2024/1/8 23:38
 */
@Mapper
public interface RoleConvert {

    RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

    RoleDO convert(RoleUpdateReqVO bean);

    RoleRespVO convert(RoleDO bean);

    RoleDO convert(RoleCreateReqVO bean);

    List<RoleSimpleRespVO> convertList02(List<RoleDO> list);

    List<RoleExcelVO> convertList03(List<RoleDO> list);

    RoleDO convert(RoleCreateReqBO bean);

}
